import _RULES from '@/utils/rules/rules'

export const KEYS = {
  // ID
  key0: 'id',
  // 医院名称
  key1: 'hospital',
  // 医院科室
  key2: 'department',


  // 创建人
  key6: 'createBy',
  // 创建时间
  key7: 'createTime',
  // 修改人
  key8: 'updateBy',
  // 修改时间
  key9: 'updateTime',
  key10: '',
  key11: '',
  key12: '',
  key13: '',
}

export const RULES = {
     [KEYS.key1]: [{ required: true, message: '请输入医院名称', trigger: 'blur' }],
     [KEYS.key2]: [{ required: true, message: '请输入科室', trigger: 'blur' }],
    // [KEYS.key4]: [{ required: true, message: '请输入身份证号', trigger: 'blur' }, ..._RULES.IDNo],
    // [KEYS.key5]: [{ required: true, message: '请输入联系电话', trigger: 'blur' }, ..._RULES.phone],
}

export const KEYS_RULES_MIXIN = {
    data() {
        return {
            KEYS,
            RULES
        }
    }
}